<template>
  <div class="content">
    <div class="title flex-between">
      <div @click="back">返回上一级</div>
      <div
        v-if="$route.name == 'multipleUpload'"
        class="submitAll flex-center"
        @click="submitAll"
      >
        确定上传
      </div>
    </div>
    <div class="hr"></div>
    <div class="main">
      <keep-alive>
        <router-view ref="form"></router-view>
      </keep-alive>
    </div>
  </div>
</template>

<script>
export default {
  components: {
    
  },
  data() {
    return {};
  },
  computed: {},
  created() {},
  methods: {
    back() {
      this.$router.go(-1);
    },
    submitAll() {
      this.$refs.form.submitAll();
    },
  },
};
</script>

<style lang="scss" scoped>
.content {
  color: white;
  padding: 0.2rem;
  // height: calc(100vh - 2rem);
  .title {
    height: 0.16rem;
    font-size: 0.16rem;
    font-family: Alibaba PuHuiTi;
    font-weight: 400;
    color: #1890ff;
    margin: 0 0 0.13rem 0.39rem;
    cursor: pointer;
  }
  .submitAll {
    color: white;
    width: 1.2rem;
    height: 0.38rem;
    background: #1890ff;
    border-radius: 0.05rem;
  }
  .hr {
    height: 0.02rem;
    background: #cccccc;
    opacity: 0.1;
  }
  .main {
    padding-left: 0.2rem;
  }
}
</style>
